<script lang="ts" setup>
import RichText from "@/components/RichText.vue";
const fileList = ref(
    "https://minio.lianhaikeji.com/marketing/prize/1650353048000.png"
  ),
  richtext = ref("");
// const fileList = ref([
//   "https://minio.lianhaikeji.com/marketing/prize/1650353048000.png",
// ]);
// const fileList = ref([
//   {
//     url: "https://minio.lianhaikeji.com/marketing/prize/1650353048000.png",
//     name: "test",
//   },
// ]);
const onEditorChange = (val: any) => {
  console.log("quill编辑器：", val);
};
</script>
<template>
  <h3>文件上传</h3>
  <Upload v-model="fileList" file-path=""></Upload>
  <h3>富文本编辑器</h3>
  <rich-text :model-value="richtext" @change="onEditorChange"></rich-text>
</template>
